package com.itheima.servicce.impl;

import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.domain.User;
import com.itheima.servicce.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {

    private UserDao dao = new UserDaoImpl();

    @Override
    public List<User> findAll() {

        return dao.findAll();
    }

    @Override
    public void save(User users) {
        dao.save(users);
    }

    @Override
    public void delete(String uid) {
        dao.delete(uid);
    }

    @Override
    public User findById(String uid) {
       return dao.findById(uid);
    }

    @Override
    public void update(User user) {
        dao.update(user);
    }
}
